package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 招生学生数据（未成交的）
 * </p>
 *
 * @author hpiggy
 * @since 2023-08-29
 */
@TableName("enroll_data")
@ApiModel(value = "enrollData", description = "招生学生数据")
@Data
public class EnrollData implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long customerId;

    @ApiModelProperty("学校id（报读校区，转校后如果招生信息改变到转入校区，这个校区id也要改变）")
    private Long schoolId;

    private String schoolName;

    @ApiModelProperty("战队id")
    private Long teamId;

    private String teamName;

    @ApiModelProperty("教师id")
    private Long teacherId;

    private String teacherName;

    @ApiModelProperty("学生id")
    private Long studentId;

    private String studentName;

    @ApiModelProperty("科目")
    private Integer subjectsId;

    @ApiModelProperty("类型：邀约:1，试听:2，成交:3")
    private Integer type;

    private BigDecimal dealNum;

    private Integer deleted;

    @ApiModelProperty("添加日期")
    private LocalDate addDate;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
